package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbSupplier;
import com.cykj.v_m_sprintboot.mapper.TbSupplierMapper;
import com.cykj.v_m_sprintboot.service.TbSupplierService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbSupplierServiceImpl implements TbSupplierService {
    @Autowired
    private TbSupplierMapper tbSupplierMapper;

    @Override
    public boolean addSupplier(TbSupplier tbSupplier) {
        return tbSupplierMapper.addSupplier(tbSupplier);
    }

    @Override
    public List<TbSupplier> getSupplierList(TbSupplier tbSupplier, RowBounds row) {
        return tbSupplierMapper.getSupplierList(tbSupplier,row);
    }

    @Override
    public TbSupplier selectSupplier(TbSupplier tbSupplier) {
        return tbSupplierMapper.selectSupplier(tbSupplier);
    }

    @Override
    public int countSupplierList(TbSupplier tbSupplier) {
        return tbSupplierMapper.countSupplierList(tbSupplier);
    }

    @Override
    public boolean updateSupplierInfo(TbSupplier tbSupplier) {
        return tbSupplierMapper.updateSupplierInfo(tbSupplier);
    }

    @Override
    public boolean delSupplier(TbSupplier tbSupplier) {
        return tbSupplierMapper.delSupplier(tbSupplier);
    }


}
